package com.design_patterns.factory;

/**
 * @author: 李德才
 * @description:
 * @create: 2020-08-24 22:03
 **/
public class Main {
    public static void main(String[] args) {
        Pen pen = new BluePen();
        pen.write();

        Pen penFactory = new BluePenFactory().createBluePen();
        penFactory.write();
    }
}
